<?php
defined('_JEXEC') or die;
JHtml::addIncludePath(JPATH_COMPONENT.DS.'helpers');
include 'includes/viewitem.php';

?>

<?php if($customdata->get('cf_image_display') && $image && JRequest::getInt('start')==0) :?>
<div class="itemImageBlock">
	<img src="<?php echo $imageurl;?>" alt="<?php echo $alt;?>" />	
</div>
<?php endif;?>
<div class="itemText">
    	<?php echo $this->item->event->beforeDisplayContent; ?>
			<?php echo $this->item->text; ?>
        <?php echo $this->item->event->afterDisplayContent; ?> 
</div>
<div class="clr"></div>
<?php if(($cf_gallery_display)==1):?>
<?php echo $this->loadTemplate('itemgallery');?>
<?php endif;?>  
     